﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

using FXnaAppBase;

namespace FXnaAppBaseWpf
{
    /// <summary>
    /// winBoundary.xaml 的交互逻辑
    /// </summary>
    public partial class winBoundary : Window
    {
        public winBoundary(WorkBoundary boundary)
        {
            InitializeComponent();



            this.WindowStartupLocation = System.Windows.WindowStartupLocation.CenterScreen;


            this._boundary = boundary.Clone() as WorkBoundary;



            //通过数据绑定进行编辑

            this.DataContext = this._boundary;



            
        }



        WorkBoundary _boundary;

        public WorkBoundary Boundary
        {
            get { return _boundary; }
            set { _boundary = value; }
        }

        private void btnOK_Click(object sender, RoutedEventArgs e)
        {

            this.DialogResult = true;

            this.Close();

        }

       




    }
}
